﻿@echo off
 chcp 65001
 
 ::简体中文默认的GBK
 ::chcp 936
 
CALL "%~dp0unstall.bat"
sc create WorkerService binpath= "%~dp0..\..\WorkerService.exe" displayname= "服务名称" start= delayed-auto
sc description WorkerService "服务描述"
sc failure WorkerService  reset= 0 actions= restart/1200000
sc start WorkerService